var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, n, o) {
    var r, a = arguments.length, i = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; 0 <= c; c--) (r = t[c]) && (i = (a < 3 ? r(i) : 3 < a ? r(e, n, i) : r(e, n)) || i);
    return 3 < a && i && Object.defineProperty(e, n, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("AudioManager"), s = e("PopBackItemView"), c = e("GameConfig"), l = e("GameData"), d = e("UIManager"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.skeleton = null, t.sprite = null, t;
    }
    return i(t, e), t.prototype.onLoad = function() {}, t.prototype.callback = function() {
        var n = this;
        r.default.getInstance().playAudio("特殊宝箱"), this.sprite.node.active = !1, this.skeleton.node.active = !0, 
        this.skeleton.setAnimation(0, "animation1", !1), this.skeleton.setCompleteListener(function() {
            n.skeleton.setAnimation(0, "animation2", !1), n.skeleton.setCompleteListener(function() {
                for (var t = d.default.getInstance().getPnl("start"), e = 0; e < 8; e++) t.appendEquip(function() {
                    for (var t = Math.random(), e = 0, n = 0; n < c.GC.airScaleList.length; n++) if (t < (e += c.GC.airScaleList[n])) return Math.max(l.GD.topRank + c.GC.airRankList[Math.min(n, c.GC.airRankList.length - 1)], 0);
                    return Math.max(l.GD.topRank + c.GC.airRankList[c.GC.airRankList.length - 1], 0);
                }(), 0);
                n.closePnl();
            });
        });
    }, a([ h(sp.Skeleton) ], t.prototype, "skeleton", void 0), a([ h(cc.Sprite) ], t.prototype, "sprite", void 0), 
    a([ p ], t);
}(s.default);

n.default = f;